package test;

public class Main {
    public static void main(String[] args) {
        Students s1=new Students("S2024001","张三","男",18);
        Students s2=new Students("S2024002","李四","女",19);
        Courses c1=new Courses("C001","JavaWeb应用开发","刘教授");
        Courses c2=new Courses("C003","数据库原理","王老师");
        s1.setAge(20);
        c2.setCourseId("C002");
        System.out.println("--- 学生信息 ---");
        s1.showInfo();
        System.out.println("---------------");
        s2.showInfo();
        System.out.println("---------------");
        System.out.println();
        System.out.println("--- 课程信息 ---");
        c1.showInfo();
        System.out.println("---------------");
        c2.showInfo();
        System.out.println("---------------");
    }
}
